# -*- coding:utf-8 -*-
from __future__ import absolute_import, division, print_function, with_statement


class MessageConfig(object):
    '''
    单个消息注册配置
    '''

    def __init__(self, method, func, app, uri_pattern):
        self.method = method
        self.func = func
        self.app = app
        self.uri_pattern = uri_pattern

    def __repr__(self):
        return '<消息注册配置 app:{} method:{} uri_pattern:{} handler_name:{}>'.format(
            self.app,
            self.method,
            self.uri_pattern,
            self.func.__name__
        )
